home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 9107 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.3 KB

  1. Path: mail2news.demon.co.uk!tarik.demon.co.uk
  2. From: Laurence Barea <larry@tarik.demon.co.uk>
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Zombies & Daemons
  5. Date: Fri, 08 Mar 96 02:15:16 GMT
  6. Organization: Dialog Systems Limited
  7. Message-ID: <826251316snz@tarik.demon.co.uk>
  8. References: <3134348F.7526@citenet.net> <4hgchg$t34@metroux.metrobbs.com>
  9. Reply-To: larry@tarik.demon.co.uk
  10. X-NNTP-Posting-Host: tarik.demon.co.uk
  11. X-Newsreader: Demon Internet Simple News v1.30
  12. X-Mail2News-Path: tarik.demon.co.uk
  13.  
  14. In article <4hgchg$t34@metroux.metrobbs.com>
  15.            cakirke@metroux.metrobbs.com "Chris Kirke" writes:
  16.  
  17. > In article <3134348F.7526@citenet.net>, oliver@citenet.net says...
  18. > >
  19. [snip]
  20. > >
  21. > >        The problem is this: when one of the children dies for whatever 
  22. > >reason (usually a f*cked OCI call which makes the daemons session 
  23. > >unstable), the parent's sigcld handler forks a new child to keep a 
  24. > >consistent number of processes running. For some reason, however, the 
  25. > >dead child process lingers around as a zombie process ... how do I avoid 
  26. > >this?
  27.  
  28. [snip]
  29.  
  30. I hope I am remembering this correctly from an HP-UX man page.
  31. The child will become a zombie if the child exited without the parent
  32. waiting (wait()) for it to complete.
  33.  
  34. -- 
  35. Laurence Barea
  36. larry@tarik.demon.co.uk
  37.